home *** CD-ROM | disk | FTP | other *** search
- property display, text, charWidth, index
-
- on new me, params
- set text to getProp(params, #text)
- set display to getProp(params, #displayMember)
- set charWidth to getProp(params, #charWidth)
- set tmpText to EMPTY
- repeat with spcCount = 1 to length(text)
- set tmpText to tmpText & " "
- end repeat
- set text to tmpText & text
- set index to 0
- return me
- end
-
- on TurnOn me
- if index < length(text) then
- set index to index + 1
- else
- set index to 1
- end if
- set newText to char index to index + charWidth of text
- set the text of member display to newText
- end
-
- on TurnOff me
- end
-
- on dispose me
- set the text of member display to " "
- set display to 0
- set text to 0
- set charWidth to 0
- end
-